/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Acciones.Edicion;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import org.edisoncor.gui.panel.PanelNice;

/**
 *
 * @author luisramirezmartinez SAMI 2011
 *
 */
public class AccionColapsar extends AbstractAction{
    private PanelNice elemento;
    
    public AccionColapsar(){

    }

    @Override
    public void actionPerformed(ActionEvent ae) {
        elemento.setVisible(!elemento.isVisible());
    }

 
    public PanelNice getElemento() {
        return elemento;
    }


    public void setElemento(PanelNice elemento) {
        this.elemento = elemento;
    }

}
